package org.sixdog.mcsit.service;

import java.util.Map;
import java.util.concurrent.TimeUnit;

public interface CaptchaService {
    public static final String DEFAULT_TYPE = "defaultType";
    public static final String EMAIL_TYPE = "emailType";

    
    boolean saveCaptcha(String key, String captcha,long durationSec);//duration时长
    boolean equalsCaptcha(String key, String captcha);
    long getCaptchaTimeByKey(String key);

    Map<String,String> buildCaptcha(String captchaType, Map<String,String> args);
}
